using UnityEngine;
using UnityEditor;

[CustomEditor(typeof(AudioStudio.MenuSound)), CanEditMultipleObjects]
public class MenuSoundInspector : Editor
{
    AudioStudio.MenuSound component;

    void OnEnable()
    {
        component = target as AudioStudio.MenuSound;
        component.IsUpdatePosition = false;
    }

    public override void OnInspectorGUI()
    {
        serializedObject.Update();
        EditorGUILayout.LabelField("Open:");
        AudioScriptGUI.DrawList(serializedObject.FindProperty("Opens"));
        EditorGUILayout.LabelField("Close:");
        AudioScriptGUI.DrawList(serializedObject.FindProperty("Closes"));
        serializedObject.ApplyModifiedProperties();
    }
}